package com.xhcl.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xhcl.system.mapper.TSrhsIncomemxMapper;
import com.xhcl.system.domain.TSrhsIncomemx;
import com.xhcl.system.service.ITSrhsIncomemxService;
import com.xhcl.common.core.text.Convert;

/**
 * 收入情况明细Service业务层处理
 * 
 * @author xhcl
 * @date 2020-09-02
 */
@Service
public class TSrhsIncomemxServiceImpl implements ITSrhsIncomemxService 
{
    @Autowired
    private TSrhsIncomemxMapper tSrhsIncomemxMapper;

    /**
     * 查询收入情况明细
     * 
     * @param lsh 收入情况明细ID
     * @return 收入情况明细
     */
    @Override
    public TSrhsIncomemx selectTSrhsIncomemxById(String lsh)
    {
        return tSrhsIncomemxMapper.selectTSrhsIncomemxById(lsh);
    }

    /**
     * 查询收入情况明细列表
     * 
     * @param tSrhsIncomemx 收入情况明细
     * @return 收入情况明细
     */
    @Override
    public List<TSrhsIncomemx> selectTSrhsIncomemxList(TSrhsIncomemx tSrhsIncomemx)
    {
        return tSrhsIncomemxMapper.selectTSrhsIncomemxList(tSrhsIncomemx);
    }

    /**
     * 新增收入情况明细
     * 
     * @param tSrhsIncomemx 收入情况明细
     * @return 结果
     */
    @Override
    public int insertTSrhsIncomemx(TSrhsIncomemx tSrhsIncomemx)
    {
        return tSrhsIncomemxMapper.insertTSrhsIncomemx(tSrhsIncomemx);
    }

    /**
     * 修改收入情况明细
     * 
     * @param tSrhsIncomemx 收入情况明细
     * @return 结果
     */
    @Override
    public int updateTSrhsIncomemx(TSrhsIncomemx tSrhsIncomemx)
    {
        return tSrhsIncomemxMapper.updateTSrhsIncomemx(tSrhsIncomemx);
    }

    /**
     * 删除收入情况明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTSrhsIncomemxByIds(String ids)
    {
        return tSrhsIncomemxMapper.deleteTSrhsIncomemxByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除收入情况明细信息
     * 
     * @param lsh 收入情况明细ID
     * @return 结果
     */
    @Override
    public int deleteTSrhsIncomemxById(String lsh)
    {
        return tSrhsIncomemxMapper.deleteTSrhsIncomemxById(lsh);
    }
}
